package com.xxh.basecrudframework.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xxh.basecrudframework.common.entity.User;
import com.xxh.basecrudframework.mapper.UserMapper;
import com.xxh.basecrudframework.service.UserService;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


    @Override
    public User getByUsername(String username) {
        return lambdaQuery().eq(User::getUsername,username)
                .one();
    }
}
